package com.zy.userfeign.feign;


import com.zy.userfeign.constant.ProjectConstant;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Map;

/**
 * description 订单模块Feign接口
 *
 * @author ZY
 * @date 2021年04月12日 11:10
 **/
@FeignClient(name = ProjectConstant.PROJECT_NAME, path = ProjectConstant.MODULE_USER_PATH, contextId = ProjectConstant.PROJECT_NAME + ".UserFeign")
public interface UserFeign {

    /**
     * 获取用户信息
     * @param params 参数
     * @return 返回用户信息
     */
    @GetMapping("/getUserInfo")
    Map<String, Object> getUserInfo(@SpringQueryMap Map<String, Object> params);
}
